import {ColumnsUtil} from "@/utils";




export const KIND_COLUMNS = [

    ColumnsUtil.normalColumn("分类代码", "code"),
    ColumnsUtil.normalColumn("分类名称", "name", 150),
    ColumnsUtil.normalColumn("绑定图标", "icon", 150),
    ColumnsUtil.normalColumn("分类描述", "description", 0, 'left', true, true, null),
    ColumnsUtil.actionColumn(),
];



export const GOODS_COLUMNS = [

    ColumnsUtil.imageColumn("图片", "picture" ,true,80,60,60),
    ColumnsUtil.normalColumn("商品名称", "title", 0),
    ColumnsUtil.normalColumn("商品类型", "kind.name", 150 ,'center'),
    ColumnsUtil.normalColumn("库存数量", "stockTotal", 100 ,'center'),
    ColumnsUtil.normalColumn("划线金额", "stdPrice", 100 ,'center'),
    ColumnsUtil.normalColumn("实际售价", "disPrice", 100 ,'center' ),
    ColumnsUtil.normalColumn("销售数量", "saleCount", 100 ,'center' ),
    ColumnsUtil.tagColumn("商品状态", "state", 100 ),
    ColumnsUtil.actionColumn(),
];



export const ORDER_COLUMNS = [
    ColumnsUtil.tagColumn("订单状态", "state", 90 ,true,"center"),
    ColumnsUtil.normalColumn("订单编号", "id", 190),
    ColumnsUtil.normalColumn("商品标题", "goods.title", 200 ,"center"),
    ColumnsUtil.normalColumn("购买数量", "quantity", 90 ,"center"),
    ColumnsUtil.normalColumn("收货人信息", "address", 0),
    ColumnsUtil.normalColumn("快递信息", "express", 150),
    ColumnsUtil.normalColumn("快递费用", "expressFee", 100),
    ColumnsUtil.normalColumn("订单时间", "time",200),
    ColumnsUtil.actionColumn(90, true, 'left'),
]
